package com.ms.education.course.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ms.education.R;
import com.ms.education.course.entity.Course;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ms.education.course.entity.vo.CourseResultVo;
import com.ms.education.course.entity.vo.PageCourseVo;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author ms
 * @since 2023-01-17
 */
public interface CourseService extends IService<Course> {

    Map<String,Object> pageCourse(PageCourseVo pageCourseVo , long current, long limit);

    R getCourseById(Integer id, Boolean isContainChapter, Boolean isContainComment);

    R deleteCourseByIds(Integer[] ids);

    void saveOrUpdateCourse(Course course);

    Integer countCourseAdd(String day);

    List<Course> index();

    List<Course> getTeacherCourses(Integer teacherId);

    Page<Course> pageCourseOfUser(long current, long limit, int userId);
}
